select category_id, name from ttracker_categories where package_id = :package_id order by upper(name) select name, value, function from ttracker_options where package_id = :package_id