fixed many-to-many relatinship and updated commcare-sync schedular method accordingly