updated db structure; updated analyzer.js: we already get a result and get the bets from the db