has_enum columns can be integers now

It is possible to use integers as enum columns. Useful for database
comparison of enum values. Uses index-method to save enum value.
Fixes validation bug when using integer columns
Fixes column type checking if database is not created yet