Abscessed tooth can cause stomach distress.
Taking medicines will not give a permanent relief.
I would advice you to visit a dentist
and get the pus drained and curetted.Root canal treatment
is indicated in such cases.
Prolonged use of analgesics and antibiotics can result in black stools.
Drink plenty of water and fluids.
Take fruits and leafy vegetables.
Hope this helps.