Refactor 11 14

This refactor brings regex queries, collection by name and tests that actually test things.
Should we be checking to see if the parameters are an empty string?