finishing up adding mongodb support