The invention relates to the compounds of formula I and II and its pharmaceutical acceptable polymorphs solvates enantiomers stereoisomers and hydrates thereof. The pharmaceutical compositions comprising an effective amount of compounds of formula I and II 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.