Object relational mapping for php