BUGFIX: compose dlog view name

The composition was using an undefined variable for the date that resulted in the view being called simple 'dlog'.
Defined a var for this and used in composition of both table name and view name.