commiting db session every 10 folders while indexing to avoid non-unique-slugs