t3lib_db does not meet CGLs
Database API (Doctrine DBAL)
You can see t3lib_div was modified alot over the time for some functions match CGLs and some don't.
Code following the CGLs is easier to read and modify.
(issue imported from #M11813)