Added dropDb functionality, ensure socket is tracked from available to active states (and back)