update work on twdb
work in progress
changed byte array import, added log lines