fix bug insert db class