inserting and updating ewma in the DB