Python Program Using String Functions In Sql