move solver.rb to routes helper
Merge branch 'db_change' of https://github.com/TZ2016/DailyRoute into db_change