Making a Flask app using a Postgresql database and deploying to Heroku