def get_current_scene(history_db):
    """gets the current scene from the history db"""
    from src.praxxis.sqlite import connection
    conn = connection.create_connection(history_db)
    cur = conn.cursor()
    get_current_scene = (
        'SELECT Scene FROM "SceneHistory" WHERE Ended != 1 ORDER BY ID DESC LIMIT 0, 1'
        )
    cur.execute(get_current_scene)
    rows = cur.fetchall()
    conn.close()
    return rows[0][0]
