Using AR Unique instead of SQL