really bad mysql OOP example, needs to be upgraded to PDO