save weight to db