Update fixed catching database exceptions