adds support for db logging