Update query.js

propagate updates for mysql updates