adding mongodb persistence to distribution