Add db and log