REST interfaces (including login auth) migrated to mongodb.
The query is directly executed and result sent back.