Refactored memory & yaml databases. Save dates as timestamps in yaml.