Implement the "CLASSES" virtual table and the "CLASS_DATA" SQL function.