These are some of the query classes for our database.  Also has the file to load the DB.  I tweaked the sql script as well.