fix up database update and backfill script to work with higher accuracy on production