Finished adding database foreign key support and removed temporary
workaround when deleting themes from the database.
Merge pull request #52 from CS673/removal-of-temp-db-code

Finished adding database foreign key support and removed temporary workaround.