Url Shortener with Sinatra and Active Record