Implement some collection methods in connection.py