Homework for PHP and MySQL Class