Condensed SQL in Rack app