database update and editprofile page