sql fix attempt