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

as discussed. I replaced all occurences in lib/private/db. 

@MorrisJobke @DeepDiver1975 @LukasReschke 
ack