Created UrlRepository class to manage a database
Can query url database with a permalink
Refactor of add method in UrlRepository

Assigns redirect url to permalink, not original_url.
Returns permalink of item.