added editing feature and db update script