Update query implemented.