fix for SQLite last insert id