Add DB models. Add a script to initialize the database with data from bd.py file
Home view now gets data from database and api.py (for sensor reads) instead of db.py for everything.
Add some attributes to models.
Remove unnecessary .pyc files.