fix wrong return value on update
add full support for the standard aggregates