Fix cursor in DBSqlite