Added check for log table