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

as discussed. I replaced all occurences in lib/private/db. 

@MorrisJobke @DeepDiver1975 @LukasReschke 
> Actually, we should get rid of the header() here as well in that case.

yes