my own early active record's php apporach