Network State listner and DB helper