Wound infected?

I often pull the skin around my nails, especially my thumbs. A few days ago, however, I hit a bad spot that was actually getting better until I painted it yesterday (and there was paint on it, but it was actually over the scab). Overnight, when I woke up, I always noticed that it hurt,…