How can David be a man after God’s own heart when he had multiple wives and concubines and had Bathsheba’s husband killed?

http://www.equip.org, 1-888-7000-CRI