'db' undeclared in charModel.php?