added cascading to db relations