fixes to the postgresql init