def dbStore(self, typ, py_value):
<EOL>if isinstance(py_value, (list, tuple, set)):<EOL><INDENT>py_value = tuple((self.dbStore(x) for x in py_value))<EOL><DEDENT>elif isinstance(py_value, orb.Collection):<EOL><INDENT>py_value = py_value.ids()<EOL><DEDENT>elif isinstance(py_value, orb.Model):<EOL><INDENT>py_value = py_value.id()<EOL><DEDENT>return py_value<EOL>
Prepares to store this column for the a particular backend database.

:param backend: <orb.Database>
:param py_value: <variant>
:param context: <orb.Context>

:return: <variant>