Modify the rules page. Can retrive data from db

Signed-off-by: unknown <dre.paperhouse@gmail.com>