Changes to stored procedures for writing scores