fix insert database