added app.py and database.py