Add __enter__ and __exit__ methods to Cursor, Connection, and Database classes, so that they work with 'with:'