bugfix for unique index for username and family_key