Use a table for server command definitions
Make it possible for external code to define query types