Eight hour fight moving to postgresql on localhost