reflect fields in sql