we simply move the table definition into the separate function
Now we have moved the activity table definition too