Added multi-module database schema and patch support