Modifiy database model to support CASCADE or SET NULL