fix bug where q instead of query was passed, add update fns
bump version