updated platform sql