Created methods to add classes to the database from user inputs.