Added logger to add data to DB fro analysis