fixed max(RowID) computation in direct SQLite3 multi-INSERT process