Selecting and Updating Records from an External Database