Added database fix for openshift, stealed from original repo :)