fixed evolution SQL