def make_location_dict(genome_build, cursor):
    """ Format of dict:
        chromosome -> dict(position -> SQLite3 row from location table)

        old:
            Key: chromosome, pos
            Value: SQLite3 row from location table
    """
    location_dict = {}
    query = """SELECT * FROM location WHERE genome_build = ? """
    cursor.execute(query, [genome_build])
    for location in cursor.fetchall():
        chromosome = location["chromosome"]
        position = location["position"]
        try:
            location_dict[chromosome][position] = location
        except:
            location_dict[chromosome] = {position: location} 

    return location_dict