sql changes and complete user update