updated mongodb queries and call to bills details