node js script to store trainig data