better database / error handling

default openshift db settings, using config.php.in if no custom config