Created the database class.