def records(): return jsonify(find_records(mongo))
def record(id): return jsonify(find_records(mongo, id))
def record(id): record = find_records(mongo, id) if len(record) == 0: return ('', 204) else: return jsonify(record[0])