Clears the entire database (both tracks and waypoints). Runs inside a single transaction to ensure atomicity.