Easy way to keep class tree and class arguments in the database