Model sanity update

id are all integers
removed server info from unit table
fixed fk and pk of units table