Avoid raw sql in LocalFileDeleteBatch::doDBInserts

Use Database::conditional instead of raw sql.

Change-Id: Ic00146e9ec582a263b9dec117b12532fdc24789e
Merge "Avoid raw sql in LocalFileDeleteBatch::doDBInserts"