Changed scaeadan_train.py to store scores in database