ensure we unsubscribe from sql queries

so we don't log repeatedly each query