basic model for memory/db sync example