saving yos to db