Db switch to pg