Implement account deactivation query