Adds command line interface, adds indices to visit and shortened_url.