Initialised the database