Add entity manager and associated demo