Starting postgresql fixes