add mysql2 gem and fix error