Some changes in mysql connection