Combing the power of sql and petl to perform very fast queries