removed static method in task.cs and replaced with sqlupdate