made multiple changes, mostly promisified a lot of functions. cron job works with ./json folder. still need to remove dummy variables / functions / console logs