'A destructive operation to drop the underlying database and close all connections.
Intended to be used by test code for cleanup.
If database is True, then this should drop the entire database.
Otherwise, if collections is True, then this should drop all of the collections used
by this modulestore.
Otherwise, the modulestore should remove all data from the collections.
If connections is True, then close the connection to the database as well.'

def _drop_database(self, database=True, collections=True, connections=True):

    connection = self.fs_files.database.connection
    if database:
        connection.drop_database(self.fs_files.database)
    elif collections:
        self.fs_files.drop()
        self.chunks.drop()
    else:
        self.fs_files.remove({})
        self.chunks.remove({})
    if connections:
        self.close_connections()
