try/catch DB connection