Set up app to use postgresql