Query update APPLY

- Allow applying a function to result sets
- Added apply functions "mixin_add" and "mixin_remove"