separated router and database concerns into files
routes cleanup