add submission
add submission document
remove temp
auto upgrade db