added databasehandler class