insert last id for sqlite3 and mysql