added rule for the db