performance improvement by using count in sql rather than using the cursor size
fixed #62. The probe upload service can handle deletions while it uploads
the probe upload activity now correctly keeps state of probe upload service to show the user
instead of updating the upload time only if there are no errors, it should be updated if any data is uploaded