Support insert ignore on MySQL and SQLite