configured app to use postgresql