Navigator: accelerate (a lot) queries by pre-fetching class and relation IDs
rather than doing joins that compare on the class name.

These small queries for the very reduced set of relations and classes
for a project are cached in the postgres server, given that they never change.