Utility for parsing URL query parameters to use in MongoDB queries