After re-preparing stmts, run query in executor

The query was being resubmitted on the event loop thread,
which could cause a deadlock if there were not any connections
available for use.