Working with data logs and databases