moved DB initialization from blockchain.py to threads.py