Fallback to database field type with querying an enum field