Php Oop Database Classification