fixed create profile and updated rule class and DB