Changed enum type for database type