fix dbhandler's bug