# Writing back to a database

**URL:** <https://forum.inductiveautomation.com/t/writing-back-to-a-database/59359>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [May 9, 2022, 2:27pm UTC](https://forum.inductiveautomation.com/t/writing-back-to-a-database/59359 "2022-05-09T14:27:57Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [May 11, 2022, 7:05am UTC](https://forum.inductiveautomation.com/t/writing-back-to-a-database/59359/21 "2022-05-11T07:05:41Z")

</div>

> [@mjohnson0238](#):
>
> `id = self.session.custom.ID`

I wouldn't use `id`. It's already in use by python, as a built-in function: [https://cpython-test-docs.readthedocs.io/en/latest/library/functions.html#id](https://cpython-test-docs.readthedocs.io/en/latest/library/functions.html#id)  
You might not be using this function now, but future you or future co-worker might want to and run into issues.

I work on a project that I didn't initiate, most of it was in place when I came in. There was a script that failed, the trace said that it came from a simple `isinstance(something, dict)` call. dict had been used as a variable name previously in the script.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/2/d26a84bfb072aa6182b7f4bc75069ba40f57a70e.png)

[Previous page](https://forum.inductiveautomation.com/t/writing-back-to-a-database/59359.md?page=1)
