change adapter to mysql2