Fix management of access exceptions in flat database.
New formatting mechanism relying on flat database and caching for increased efficiency.

Now BaseTask exposes two method to format and format and eval string using values stored in the database. For each entry, a preformatted version of the string and the database indexes are cached for future use when the database is running.