1. A database management system comprising: a memory for storing computer executable instructions; and a processing unit for accessing the memory and executing the computer executable instructions, the computer executable instructions comprising: a query data collector to access a query repository table to determine if a first query plan for a first configuration executed on a relational database has a lower resource cost of execution between the first query plan and a second query plan for a second configuration, wherein the query repository table includes a plurality of query records with annotated query plans, each annotated query plan comprising text sufficient to generate a query plan of a certain form.