first step towards adding a mongodb backend