change the temp direct for debuging
bug fixed
bug fixed
close connection to database if error ocours when querying database
add method for deleting workflow
add method for delete workflow, delete workflow if failed to create