fix index error on double addition of the same related model (#1346)
* fix index error on double addition of the same related model * connect to db * change to cleanup instead of transaction as a check
This commit is contained in:
* fix index error on double addition of the same related model * connect to db * change to cleanup instead of transaction as a check