mySQL deprecated call fix