Added old mongo base code