enbrace DAO with try catch block