Updated database with a logging component. Should be expanded in db and
other classes.