working on updating upload to server so that it keeps track of last successful upload and acts appropriatelywhen uploading more data to server.