Add error throwing and catching for DB connection.