Improve exception handling in BaseDao
Remove detach link in project viewers