Certificate in Php and MySQL