Backend query tool generation

Signed-off-by: Jay Rivers <JRivers@printplace.com>