include constructor for DTO
exception

add exception handler to the DB connection