added cascading deletes to relationships, added location has_many's to comparisons