'Return the real database table type for this question
This assumes that the value is valid'

def db_type(self):

    format = self.get('Format', 'n')
    if (format == 'n'):
        return 'integer'
    else:
        return 'double'
