Scoring window

Store the scoring window in the database.