nil check
nil check and type safety
Merge pull request #3 from fanhattan/timestamp

Auto-convert unix 'time' field to SQL compatible Timestamp field.