Added restraints to the comment table