added classes input for database