Refactored mongoose schemas and connection into separate file