Added some packages and continued refactoring to add mongoose driver.