<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def saveform(cls, form):
 """ Create and save form model data to database """


        columns = dict()
        for name, field in cls.form_fields.iteritems():
            columns[name] = getattr(form, field).data
        instance = cls(**columns)
        return instance.save()