Create logger class

logger class creats log entry in the data base