Add database creation and loading scripts; use fulltext search for autocomplete; have nutclass.php select from a view, rather than placing a complex query in code.