collect connectivity events in SQLite db