modified to connect to my db, still need to test on openshift.