helper to autogenerate classes based on DB structure, vendor