Merge pull request #971 from narfbg/develop-db-driver

Improve the base database driver class