added mongoose, outlined api