Created database class.