Added RestrictionDao and modified Restriction