execsql: use the correct statement length