mongoDB creating insertion scripts and php insertion to database