Update updatedb.js

Fixed buffer size