NetworkLogger monitors connection status and speed and logs the result to db.