Sinatra chat with queries