Save updated state of the board to db