Get from the server.

def get_online_symbol_data(database_id):
    """Get from the server."""
    import pymysql
    import pymysql.cursors
    cfg = get_database_configuration()
    mysql = cfg['mysql_online']
    connection = pymysql.connect(host=mysql['host'],
                                 user=mysql['user'],
                                 passwd=mysql['passwd'],
                                 db=mysql['db'],
                                 cursorclass=pymysql.cursors.DictCursor)
    cursor = connection.cursor()
    sql = ("SELECT `id`, `formula_in_latex`, `unicode_dec`, `font`, "
           "`font_style` FROM  `wm_formula` WHERE  `id` =%i") % database_id
    cursor.execute(sql)
    datasets = cursor.fetchall()
    if len(datasets) == 1:
        return datasets[0]
    else:
        return None