created rule and condition table in db and updated tester for insert