Update class.customer.php

Updated Customer Class with Error handling
and now returns inserted id