SQL create and edit issue changes