configure app to use postgres