database changes for making large queries.
Also added some very basic zero_mq test files that work.