modularize routes, mongoose dependency