The Dark Magic of MongoDB

There is no other explanation for this but magic, ha? Look at this sequence of commands I just typed in my terminal. I simply cannot decide whether this is great or scary, mean, who saved that data for me in between restarts? And do not get me wrong, I am all excited about MongoDB, yet, these ghost driven technology which works for you behind the scenes is a bit scary, ain’t it?

tzury@x200:/$ sudo service mongodb stop
[sudo] password for tzury:
mongodb stop/waiting
tzury@x200:/$ status mongodb
mongodb stop/waiting
tzury@x200:/$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pymongo import Connection
>>> Connection().test_db.books.count()
0
>>> Connection().test_db.books.insert({"autor": "Charles Dickens"})
ObjectId('4c1e592b6b13eb0ee3000000')
>>> Connection().test_db.books.count()
1
>>>
tzury@x200:/$ sudo service mongodb start
mongodb start/running, process 3830
tzury@x200:/$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pymongo import Connection
>>> Connection().test_db.books.count()
1
>>> Connection().test_db.books.find()[0]
{u'autor': u'Charles Dickens', u'_id': ObjectId('4c1e592b6b13eb0ee3000000')}
>>>
>>>
tzury@x200:/$