made try and catch work
created connection to todo dataase