Add logging for DB update