Fixed mysql to the open wrapper

Changed function to the open wrapper to comfort