separated routes and database connection from server.js
added new routes files