copy.deepcopy should be used to avoid altering db objs)