added support for shared queries that can be referenced by jdbc config
support not specifying any non-shared queries if shared queries are
specified.