DB connection wrapped in try/except statement