changed databse to mysql2