Resolving cyclic package dependencies in config and database.