Update single row query function

Update single row query function