add abstraction layer to cater for the differences of the DB abstraction layers of both, D6 and D7