Added auto increment for ID's in entities