Revert "Add the rest of the foreign key constraints" and "Add foreign key constraints for much more efficient deleting of apps"

This reverts commit 7aaad74ca6615adaacd0a6ab509d0546fae493cb and commit 2a27b101983cc4d9f1041b9482d37dd155d8d3de.
Add foreign key constrains to emails