1. A method, in a data processing system, for optimizing a database definition of an existing database, the method comprising: receiving usage data for the existing database; querying a knowledgebase for information about database objects of the existing database; executing optimization logic to generate a set of database commands based on the usage data and information about database objects, wherein the set of database commands, when executed against a database definition of the existing database, optimize one or more database objects of the existing database; and returning the set of optimization commands.