Disable button if it's empty on database

Amazing, this code actually works. Thank you so much!