stores Rules, Actions and Events in the DB