Another fix for the database initialisation problem