capping

Filing one's teeth in the state of janaabat

Q: Can a person in janaabat (sexual impurity) do teeth capping and teeth filing? Will the person become pure (free from sexual impurity)? If ghusal is done after teeth filing and teeth capping, does teeth filing and teeth capping in janabah (sexual impureity) have any affect on purity after ghusal, will the person be pure to read namaz after ghusal. Please help me because thinking all this I am going mad.