Loop to update the general model and rudimentary initialization

Made the general API update on a set schedule. Specific api now updates on an interval, but only when it's queried. 
**Next Steps**
- [ ] dry up the code, maybe make a authentication.js that contains the query constructor and jwt auth.
- [ ] generate a proper way of initializing the database. 
- [ ] make the general api store data for each day
- [ ] allow date queries for the general api
- [ ] maybe create two models again
- [ ] add structured error handling