try-catches in dao