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

Auto-convert unix 'time' field to SQL compatible Timestamp field.
Merge pull request #1 from erik/master

sync upstream