torndb-compatible execute and execute_lastrowid