Get a list of dataset
@app.route('/datasets/trajectory', methods=['GET'])
def list_datasets():
query = "select relname as table from pg_stat_user_tables where schemaname = 'trajectory';"
rows = conn.query(query).getresult()
datasets = []
for row in rows:
datasets.append(row[0])
return jsonify({'datasets': datasets})