update to _river sql select statement