Added Logging class that logs to DB