added Generate SQL command