another sinatra app, this one designed to practice a little SQL query magic