Minor fixes for string setting over SQL.