fixed foxx initialisation when creating a new database