Added "connect.query" middleware