his mothers namewasmaachah the granddaughter of abishalom.and he walked in all the sins of his father , which he had done before him ; his heart was not loyal to thelordhis god , as was the heart of his father david.nevertheless for davids sake thelordhis god gave him a lamp in jerusalem , by setting up his son after him and by establishing jerusalem ; because david didwhat wasright in the eyes of thelord , and had not turned aside from anything that he commanded him all the days of his life , except in the matter of uriah the hittite .