LayoutDbi function

Format log events for output to databases