title: Unable to query using peewee
body: <p>This is the error:
  peewee.OperationalError: no such table: stock</p>
  
  <p>My folder structure is like this:</p>
  
  <p>my_stocks -> data -> models.py</p>
  
  <p>my_stocks -> data -> stock_data.db</p>
  
  <p>my_stocks -> main.py</p>
  
  <p>The models.py file contains:</p>
  
  <pre><code>from peewee import *
  class Stock(Model):
      name = CharField()
      date = DateField()
      open = FloatField()
      high = FloatField()
      low = FloatField()
      close = FloatField()
      last = FloatField()
      volume = FloatField()
      turnover = FloatField()
  
      class Meta:
          database = SqliteDatabase('stock_data.db')
  </code></pre>
  
  <p>the main.py file contains:</p>
  
  <pre><code>from data.models import Stock
  
  a =Stock.select().where(Stock.name == 'NSE/UPL')
  for b in a:
      print b
  </code></pre>
  
  <p>Everytime I run main.py, a file called stock_data.db is created in my_stocks folder and 'peewee.OperationalError: no such table: stock' error shows up. </p>
  
  <p>What am I doing wrong that a new db file is getting created even though I am just running a query and the db file has already been created in the models folder?</p>