update mysql2 gem and fix ts issues