Added $raw parameter to query method.
Thanks to Rushabh Pasad for the suggestion.
Added $raw parameter to getRecord().