Add subquery to UPDATE query in get_codepoints.js

skip preview and UPDATE directly