Update selectquery