Keep classmethods together.
Make Document._dirty a set since that's how it's used.
Remove print statements from cursor.
Add close method to cursor.
Add branch test for get_connection with connection as argument.
Add __getitem__ to Cursor.
Add support for partial documents.