Adding class with SQL statements.