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

as discussed. I replaced all occurences in lib/private/db. 

@MorrisJobke @DeepDiver1975 @LukasReschke 
we can also kill error_log() - would be written to the log twice then