#787: data_creator.py, implement 'LAST_INSERT_ID' as mysql code, not python