Charlie is David's bad self he was created when he was a kid he lived inside David for years and came on surface after he learned his wife was cheating on him his wife wasn't responsible for Charlie's creation it was David's childhood maybe he was bullied assaulted etc