PYTHON-807 Avoid DeprecationWarning in GridIn.close().
PYTHON-807 Silence DeprecationWarnings in getlasterror tests.
PYTHON-783 Silence copy_database DeprecationWarnings in tests.
PYTHON-786: Silence DeprecationWarnings in test_master_slave_connection.