new log and sql