fix off by one error in copy_db_to_head

Apparently copy_db_to_head keeps one more tlog than expected