Uncomment logging to db and fix transfer of logging event timestamp