Should this be moved to the `query` function? AFAIK `update`, `insert`, and `delete` are all just thin wrappers for `query`. Moving this into `query` means you have the code in one spot and all wrappers benefit from it.