change the run task4 script to run tasks without accessing the database