Implemented logging to DB with logback.