Adding token querie json route
Fixing record not found error