Fixed database initialisation.