use generic classes to populate DB fields