simulate db like in mem