Added ability to execute SQL to portal database