Added presist and populate functions for objects