updated Model#exists and automated references between associated entities