I had this problem with chcounter, you have to test, is it always the same place, where the database is disconnected, then try this little script pls
// workaround to work WB correctly
require_once(WB_PATH. '/framework/class.database.php');
$database = new database();
Tell us, if now is ok or not
Dietmar