Work on constructor in the database class