this required is not used. I think superceded by the changes in the db.js?