Added the database class