add select and update command