abstract logs and db