1. Should not use a mutable object in a function signature.
2. I don't see `query` being used anywhere.