Add a function for preparing an SQL query (so that we can get the number of args).
Do what we want which is less general but funner.