Refactored PersistenceException and dao-specific exceptions handling.