added code to put nytimes data in database