automatic class definition for GC DB creation