remove unused code, and do some cleanup
dsd update node status in database (connect/disconnect)