adding mongo adapter
removing db close