updating scanner.js and database file