If your tooth is loose, it will probably fall out on its own.
If this is your first milk tooth, when it is loose, it means that another tooth is pushing through.
If it is your adult tooth, it will fall out because being lose means that you have gum disease. With gum disease the tooth is likely to fall out so there is no point in having anything done to the tooth.
To help strengthen your gums, brush your teeth in the morning and before going to bed and also floss in between the teeth and down to the gums every day. You can also get very small brushes that have different a different thickness that will fit in between the teeth to clean in between them.
Are you sure that you were given pain medication, may be it was an antibiotic to get rid of any infection, especially if you have an abscess.
Don't bother thinking about what you should have done to the tooth, your dentist will give you the best option. But as the tooth is already loose, it is highly likely that it will be removed, or may fall out on its own.
Check your prescription. If it is an antibiotic, you can take pain relief medication as prescribed on the packet for your age, or bite on the pain relief tablet.
Why don't you try to make pull the teeth to the dentist?