overhaul to postgres dev module