Prepares sql as statement and runs block with it.
Block most only run on a single-thread. The statement must not be used once block returns.