Added database wrapper class.