This query is easy, but when the text contains some quotes it doesn't work.
cursor.execute ("INSERT INTO text (text_key, language_id, text) VALUES ('%s', '%s', '%s')" % (key, language_id, text))
What is the best way to protect my text variable ?