The invention relates to the compounds of formula I, formula II, formula III, formula IV and formula V or its pharmaceutical acceptable polymorphs, solvates, enantiomers, stereoisomers and hydrates thereof. The pharmaceutical compositions comprising an effective amount of compounds of formula I, formula II, formula III, formula IV or formula V and methods for the treatment of inflammation and pain may be formulated for oral, buccal, rectal, topical, transdermal, transmucosal, intravenous, oral solution, buccal mucosal layer tablet, parenteral administration, syrup, or injection. Such compositions may be used to treatment of pain, oral mucosal inflammatory or oral infectious diseases.