fix error reading db field matching struct