fix #3377: OC waypoints get duplicated

* delete outdated waypoints from database after saving