Thanks for posting your query,
According to your description , pain and swelling seems to be inflammatory in nature. It can be due to an acute attack of gout
I advice you to give you rest to the part affected, take anti-inflammatory drug like motrin
1 tablet with food as and when required (upto 4 tablets daily) to reduce pain and inflammation.
I would suggest getting this evaluated by an orthopedician for an accurate diagnosis and appropriate management. You may get the X-ray of the area affected and some blood tests under his/her guidance.
I hope this information has been both informative and helpful
You can consult me again directly through my profile http://www.healthcaremagic.com/doctors/dr-saurabh-gupta/64132
Dr Saurabh Gupta.