Move update SQL string generation