def rdb_get_data_by_department(department, key_index):

    output = [elem for elem in RdbMostRecent.get_all(department, index=key_index).run(rdb_conn())]

    return output[0]