fix: replace fetchmany function by fetchall with limit for sqlite3 support