index and mongo queries files