update the database for future terrain edit.