Convert string escapes to generic SQL, Postgres- or SQLite-specific. Add tests for SQLite. Convert extended INSERTs to series of plain INSERTs.