database problems solved by adding openshift build hook