If the table is truely spares you could allways enter each field as a single database element and use the original 'table key + fieldname' as the key for this 'single field' database. This would avoid the need to use any kind of 'nil' value alltogether.