Legacy DB Query Tool