I think to enable a app via sql there is some limitation. I am sorry for that. 

Do you have any idea enabiling via API?