sql logging done