save db as bson instead of json