Changed app to use postgres db