Finally got it work with Postgresql and OpenShift.