Initialise the database