Add document handler for core data