[FIX] Also archive orphaned transactions
[FIX] SQL Query Parameters