Do not call sqlite3_step again when it returned SQLITE_DONE before