Added exception_type in logger service
Better exception handling in PdoDatabaseService