fixed err massege on delete.
added triger to DB: prevent removal of a hause when it has active course.