fix for disabling database and disconnecting from changes api for that database