update getRecords method to accept query
Merge pull request #3 from ahmader/master

update getRecords method to accept query