Rename item to database_item for main loop
Add code to properly create new rules, output to new database file
Deep copy the compilation database

Add progress statements
Add statements summarizing changes