Added DB stuff and reader extensions.