fixing bug of dbAccess.