Adds assert to DatabaseUtils to check uploadScan