Ok, here is the problem. Instead of overwriting sorcery's config, just uncomment it's prepared statements. It's at line 313 (310 if you rmove your addition)