data saving to database

coded connection and single value saving function in update data page.