updated db. added log tables.