Move require to top of task

Logging isn't required for the table setup (that's trivial to test
anyway), so doesn't need to go first.