Fix: avoid error ($db is deprecated)