Switching db to postgres