updated for new version of mysql module