def serve_json():
    index = request.args.get('id')
    if request.args.get('reportdb'):
        db_name = request.args.get('reportdb')
    else:
        db_name = request.args.get('app')
    response = db.read_from_database(db_name, index)
    #response = open('static/data.json').read()
    return response