* fix index error on double addition of the same related model * connect to db * change to cleanup instead of transaction as a check
* fix index error on double addition of the same related model * connect to db * change to cleanup instead of transaction as a check