fix default interval value
fix upgrade db 1->2