Fix deprecated mysql version function