allow nil content and fix uniqueness constraints