chimera: make Stat aware of defined attributes

update FsSqlDriver to generate SQL statement for required
attributes only.

Acked-by: Gerd Behrmann