added insert method and url uniqueness check