fixed deploy script, right db.. ; btn loading until modal close