View Time and creating SQL log