update unsetAssociations to also unset the database reference held by ModelWithId