edit information and sql