added a rule for the database