properly parameterised for new mongo database