Add database infrastructure for canned queries.