[+TASK] rewrite of result controller to prevent query table calls