Fixing database config to work with openshift and local enviroment