Improve DAO interfaces & impls for entities 'Algorithm', 'EntityType' and 'EventType'