Update openandquery.m

Added line to read all field names in the database.