automatically run db script when being deployed on OpenShift

concerns #639