rewrite search table rendering
role is int really, I shouldn't fix queries before runing migration scripts