def fetchone(cursor):
    """
    Fetch one row from the given cursor
    Params:
        cursor (Cursor) : Cursor of previously executed statement
    Returns:
        dict : Dict representing the records selected indexed by column name
    """
    if cursor:
        return dict(zip((d.name for d in cursor.description), cursor.fetchone()))
    else:
        return {}