global config setup
added models
encapsulate routes and middle wares