Update scoreboard.js

optimized database inserts