fixed multiple tcp connections

the bot will now only connect once and then reuse the db connection
instead of creating new connections
Revert "fixed multiple tcp connections"

This reverts commit 0c9227a647c9b0c7e59c5757f1f68f89cc8108fc.