Update gems, fix MysqlAdapter issue

- Update gems
- Set mysql gem upper limit avoiding load error
- Fix value from MysqlAdapter with ActiveRecord 2.3.7 later