reinstate postgres