Autoincrement and make sure id's not null