Sets up mongodb for urls to be saved