MDL-45936 auth_db: use the function user_update_user when updating a user
MDL-45936 auth_db: use the function user_create_user when creating a user