catch DB error