Added Scanning for HasOne fields, and postgres data types