adds support for multiple databases and parallel jobs