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()
Create and save form model data to database