rule already able to test againts database

but still the logic in service must be modified.