changed database to use postgres