completed the db archiving