[util] Split trim_db.sh out of archive_db.sh
[util/update_database.py] Handle units correctly