add postgres constraint for unique urls

fixes #99