Exercise real foreign keys, transactions and conditional statements instead of mocks that cannot reproduce lost updates or cascades.