adding mongo persistance