fixed an error in the build_river_json sql statement