Added a 'depth' field to the resources collection in Mongo to improve query speed