added initialization of the database in the handler