Better handle closed statements.
Add missing QueryOne method.