Added check before adding foreign keys in Papers. Catch exceptions on SaveChanges.