Flask app in python for a simpe blog using sqlite3 database