Creating the Db class for the database interactions.