Updated to use the latest BatchInserter and newEmbeddedDatabase()