Return records as array