[refactor] simplify mongooseManager
[feature] testing port to be number in redisManager