Flushign the logger now also flushes the database logs.