sql log added, tests note fixed