eliminate OC_Template::printErrorPage in database classes, fixes #12182
errors are already logged
do not output DB information, and do not set header
Merge pull request #12186 from owncloud/fix-12182

eliminate OC_Template::printErrorPage in database classes, fixes #12182