Move addfilestodb method within the syncFiles, to ensure that all request parameters are available
Merge