added db methods for: adding/deleting classes, topics.
updated sql file, added "deleted" flags to classes, topics, and added
missing "auto increment" on class_topic ids