todos, and pp_plan function
deep copy of DB implemented