Moved data preprocessing into a submodule, and module-ized.

The data preprocessing scripts should use db_schemas now as well.