Php class generator from mysql DB