Move SQL string to meta