Implement db.load and db.save