added logging to mysql [skip ci]