Save pings to the database