Added routes for json queries and deletions