changed db adapter to mysql2