Validate types for AdhocStatement extraction

Can always extract string, other types require match of database types
and C types.