SQL adaptation guide for SQLite 3.x