1. Talk to your CPA. They can help you.
2. Talk to those business assistance company they will help you apply those licenses.
It is hard to explain and whatever you got here is not going to help you directly. Pay somebody to do it right and teach you how to run a business.