changed db to use postgres