database error catch...