rewrote script to pull data into mongodb based of date range