Added database class.