Initialise database in database directory