Cleaning up the code, added sql to create table tasks