updating from adding when querying