Fixed bugs in query and FakeDynamo
Merge pull request #34 from Obvious/xiao-bugs

Fixed bugs in query and FakeDynamo