added log to UpdateDatabase