Cleaned up the CharacterDB a little and extracted some generic logic to filter characters.