makes postgres work