def METHOD_NAME(query):
    """Function to query the DB created by Content Migration Tool.
    Args:
        query (str): Query to send to the DB.
    Returns:
        result (list): Query results, empty if no query was executed or no results were returned.
    """
    result = []
    credentials = migration_tool.ENVIRONMENT_CONFIG['migration_tool']
    try:
        connection = mysql.connector.connect(
            host=credentials['mysql_host'],
            user=credentials['mysql_user'],
            password=credentials['mysql_password'],
            database=credentials['mysql_database']
            )
    except mysql.connector.Error as error:
        connection = None
        if error.errno == errorcode.ER_ACCESS_DENIED_ERROR:
            logger.error('Something is wrong with your user name or password')
        elif error.errno == errorcode.ER_BAD_DB_ERROR:
            logger.error('Database does not exist')
        else:
            logger.error(error)
    if connection is not None:
        cursor = connection.cursor()
        cursor.execute(query)
        result = cursor.fetchall()
        connection.close()
    return result