More fixes

Fix some boolean expressions and make an entry init function.  strncpy doesn't
appreciate null pointers, apparently, so we fill it with empty strings.

Insert now works but it doesn't properly populate dates yet.