Add unit test and unique index to not allowed multiple same url for one user