AppenderDbi function

Log to databases via DBI