BaseClasses and utils for DB connections