Made huge improvements for the back office mongoose queries.