Populating the parent in the databsae