Split DB schema into multiple files.
Added support for configs.