new method getEvents in dbhandler