Fixed push to database of rules applied