her father , thomas d'alesandro jr. , was elected to the u.s. house as a democrat representing a maryland district and served from jan. 3 , 1939 , to may 16 , 1947 , when he resigned to become mayor of baltimore ; he was elected mayor three times , serving from 1947 to 1959 .