added sql restore functionality to the kts menu
renamed a few parameters to make them easier to understand