updated some code

DeleteDive deletes from 'dives' and 'safety_stops'.
When deleting latest dive, nothing changes. When you delete and add a
new dive, the values for the latest dive will change.