fix SQLite errors; enhance delete in parser