Guard against invalid database fields