add latency and packet loss to database too