Optimized terrain update database structure