Setting date field as unique