I have read through the documentation and haven't come across an answer to this, apologies if I have missed out on something.

How to I create brand new pages backed by custom logic in it's own template file?

From what i have seen of EZ pages it's targeted at simple content only html pages..

I want a custom page with a form that taps into the categories list and posts to a page that runs a custom SQL query.

Many thanks in advance

I'm using Zencart 1.3.8