Button Update Sum

I have Times
Times have points
Teams have a points ranking
I need to add, in a form, more points in the database when a team wins a match, draws or loses the game. And a button that updates (inserts) these updates into the database.
Every week there are matches with all teams.