fix module path; fix insert
update sql; use unique index