Fix for secure SQL operations.

Removed Python string operations from SQL operations.