Ruby URL shortener using Sinatra and Mongo