removed modules
ignored node_modules
fixed missing db.open()
refactored opening of db connection