store database entries in BSON