postgresql7.1 update authentication_server_token set consumed_on = current_timestamp where token_id = :token_id and random_string = :random_string and consumed_on is null