Simple report builder for Kohana (PHP Framework) using SQL queries