update logger and db