Allow plugins to create queries
Fix createQuery
Merge pull request #565 from CoryChaplin/feature_create_query

Allow plugins to create queries