def update_in_db(datadict): db = dt.connect(constants.DATABASE_CONNECTION_STRING) runs_table = db['runs'] runs_table.update(datadict, keys=['hash'])