Test fixing log and db problem