Migrated database initialisation into relevant submodules