fix postgres dependency, configure database to postgres