Added code to keep track of scoring in a remote database