tempd.py added auto_incrementing id