Add stack management

  * Function to update stack application
  * Store stack version in database
you can use the keyword `unless` instead of `if not`