added scannedCount to query and fixed lastEvaluatedKey not being null