Fixed bug where default was used for autoincrement instead of NULL