MT#5251 Optimize billing fees upload.

Bring down upload time from 180s to 16s by optimizing purge of existing
ones (one query instead of one-by-one deletion) and optimizing upload
in batch (one query instead of one-by-one deletion).