fixing 500 error and allowing multiple fields on user update
improve query