Syncing HABTM relations.