changing to pg db