slight revisions to share-to-from sql script