added the capability of creating a view on the log table