Increased robustness of the logging system
Fixed some database issues