Added database abstraction class.