new test is almost working, table data not getting saved. Refactored routes/tasks for cleaner design