added support for auto-increment fields