updates to old SQL and currentcomponent
permissions