[+BUGFIX] repaired db logging.