added logger helping class and tested that data is correctly sent to the database