logs and database change