#27954Change usage of t3lib_DB->sql_pconnect to t3lib_DB->connectDB
Description
Currently many entry points that connect to the database use sql_pconnect
for that. This method is a low level sql method that skips hook initialization.
Also duplicate code was spread all over the entry points and are rewritten
to use the exceptions from t3lib_DB->connectDB.