Plone upgrade override skins objects not available in the portal object after the upgrade

Hi, we upgraded the Plone from 3 >5. After the upgrade, I am not able to see the zsql files that we had created earlier in the portal object. Is there any way I can add them back to portal object. I tried reordering the skin properties as well. I can see them in ZMI. However when i access them from the portalwhile changing the workflow state, I get error in python.
here is my script, that I am running

Example code:

from string import join
from Products.CMFCore.utils import getToolByName
from DateTime import DateTime

portal_url = getToolByName(context, "portal_url")
portal = portal_url.getPortalObject()

Get the current user id

member_id = "SYSTEM"
membership_tool = getToolByName(context, 'portal_membership')
member_id = str(membership_tool.getAuthenticatedMember().getId())

Get the course url

actual_url = context.REQUEST['ACTUAL_URL']
sp = actual_url.split("/")
sp1 =
i = 3
while (i<len(sp)-1):
sp1.append(sp[i])
i = i+1

req_url = join(sp1,"/")
req_url = "/"+req_url

Get the comment from the request object

input_comments = context.REQUEST['comment']

Append Comment

state_change.object.appendComment(context, input_comments)

Add input comments in the PTQ table in the following format

Format: : :<current_date>

latest_comments = state_change.object.get_latest_comments()

portal['schedule_module'](module_path=req_url, task_type=1, member = member_id, comments=latest_comments, )

Error I get -
Traceback (innermost last):
Module ZPublisher.Publish, line 138, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module Products.CMFFormController.FSControllerPageTemplate, line 91, in call
Module Products.CMFFormController.BaseControllerPageTemplate, line 29, in _call
Module Products.CMFFormController.ControllerBase, line 232, in getNext
Module Products.CMFFormController.Actions.TraverseTo, line 38, in call
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 48, in call_object
Module Products.CMFFormController.FSControllerPythonScript, line 105, in call
Module Products.CMFFormController.Script, line 145, in call
Module Products.CMFCore.FSPythonScript, line 127, in call
Module Shared.DC.Scripts.Bindings, line 322, in call
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 344, in _exec
Module script, line 44, in content_status_modify
<FSControllerPythonScript at /Plone/content_status_modify used for /Plone/courses/zzz-test-department/99999-88-test-new-course-spring-2015>
Line 44
Module Products.CMFCore.WorkflowTool, line 241, in doActionFor
Module Products.CMFCore.WorkflowTool, line 552, in _invokeWithNotification
Module Products.DCWorkflow.DCWorkflow, line 282, in doActionFor
Module Products.DCWorkflow.DCWorkflow, line 421, in _changeStateOf
Module Products.DCWorkflow.DCWorkflow, line 474, in _executeTransition
Module Shared.DC.Scripts.Bindings, line 322, in call
Module Shared.DC.Scripts.Bindings, line 359, in _bindAndExec
Module Products.PythonScripts.PythonScript, line 344, in _exec
Module script, line 38, in schedule_in_ptq
<PythonScript at /Plone/portal_workflow/module_workflow/scripts/schedule_in_ptq>
Line 38
Module AccessControl.ZopeGuards, line 83, in guarded_getitem
Module OFS.ObjectManager, line 784, in getitem
KeyError: 'schedule_module'

I am looking for the pointers. Please help.

Thanks in advance

It looks like there is nothing in your site's root folder with the ID 'schedule_module'

Thanks T. Kim Nguyen!

These zsql files exists inside the portal_skins/OcwPublishing directory. OcwPublishing is the skin directory for a custom product created in our site.