fixing local file handling of mysql