updated the app to use postgresql