trying to get pg db to work