extending the mongoose libraries by adding ip validation and smart search available to all collections