Updated Child.php for sql table changes