added database methods to app.py for adding and getting things from blog.db