David and idolatry