Added query definition processing to update() method.

Signed-off-by: Michael 'Tekkla' Zorn <tekkla@tekkla.de>