Changed local db to pg