Do not go to system database if we aren't actually navigating from a page
Take the database form the url very early
Don't read database document to figure bundles options
Don't try to read error if it isn't permitted
Be aware of tenant databases in global calls
Generate first request to the correct database if we have one specified.
Fixing compilation