Made significant changes to the database. URL's are now generated within the database.