added log2db class