Moved env and logger to config
Removed mongoose dependency from users of user