Use sendWaiResponse for JSON
Simply Mongo code a bit
Avoid InternalState acquisition
Use sendWaiResponse for DB queries