def get_survey_data(mysql, survey_id):
    """
    Uses the mysql connection and a survey_id, to return a dict with the data of the corresponding row in the database. 
    """
    column_list = ["survey_id", "markdown_str", "type_str", "question_str", "option_1_str", "option_2_str", "option_3_str", "option_4_str", "option_5_str"]
    query_fmt = 'SELECT {column_list} FROM surveys where survey_id={survey_id}'
    query = query_fmt.format(column_list=", ".join(column_list), survey_id=survey_id)
    cursor = mysql.connection.cursor()
    cursor.execute(query)
    # Creates a dict with keys as column names and values as the row values.
    values = list(cursor)[0]
    survey_dict = dict(zip(column_list, ["" if (_ is None) else _ for _ in values]))
    return survey_dict