Added logger to excpetions, sets the correct DAO for the plugin