<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def select(self, table, fields=['*'], where=None, orderby=None, limit=None, offset=None):
 """ Query and return list of records. 1 {'id': 1, 'name': 'Toto'} """

        (sql, values) = sqlselect(table, fields, where, orderby, limit, offset)
        self.execute(sql, values)
        return self.fetchall()