finally mysql works