autogenerate time field name for sql