update cdb query and map