More logging in update database action