clunky DB abstraction layer - this could and should be replaced with any ready to go db interface library (ORM)
please note that ORM might/would/should solve other issues with our DB usage such as: