fix dbhandler