ensure index on name in db
fix error when merging