Finally sorted DB initialisation