Add some querying to the sinatra app