Integrated creating table from past table and currentlogs.