refactor into routes
Merge pull request #1 from Dakuan/db/routes

refactor into routes