I tried to find a way to insert large csv files (or json after converting them) into a prebuilt db. and i posted that on stackoverflow
A guy created a file that works on several platforms ( you can find the instructions in the comments and github page)
it work as a magic no matter how large is the db. it create a separate document for each array.
you can open the file in any text or code editor and change its details to fit your situation.