Basic app.py with connection to postgresql server