issue #27 clean from yaml and write to db