I'm confused by the inclusion of OPENSHIFT_MYSQL_* variables in this code. Your usage seems intentional (as opposed to copy/paste error), so I'm tagging @jwhonce to also please review.