added another version of sql script