Queries with partion keys will be accepted. 

This fixes issue #37 and issue #50
This file needs reformatting according to Scala style-guide.