I don’t have that much experience with xQuery, but what you’re basically saying is to setup another database for archiving right?

Exactly!