add optional parameter to fetchAll()

this allows to generate simple array of rows. Usefull for use with  json.