Improvement on database model default objects usage.

Fixed a bug when renaming objects and invalidating their references.

Fixed a bug on schema parser when conveting chars to xml entities.