Fix array config to database