Revert "edited sql upgrade for rebase"

This reverts commit 44e532ff754609002a220adf391dcf88bc97cb74.