PostGreSQL user creation, refactored setting of db and http auth on tiles/wms