add string queries to sinatra views