Tweaks to get postgresql access for database user working.