Also, the `sa.text` call needs the actual string that's passed to the db, so it should be `sa.text(u"''")`. The inner string should be two single quotes.