Update entities export

ml bonhomme
2023-02-06T08:39:11Z

The entities CSV export is broken now because the export DB structure has changed with the Entity Type revamp; it's made to work with a type that is a string when now we have a type_id, and subtypes are gone. For the CSV export we probably do not care about entity colors, so what needs to be done is have a JOIN on the entity_type table to get the type name.