Improvements to support remote and local postgresql database management