Convert all the db package to new logging format. Adapt logging to use
MessageFormat for performance