Tearing down the db connection at the end of each cycle as a temp fix for disconnects