update POM, meet org.sonatype.oss's rules
fixed time format misstake.
fixed crash caused by invalid foreign-key, and will log this error.