Added the function of the DatabaseHandler