TAA-14: Refactor and rationalisation of copying precreated database.