you can't remotely connect to the db of 000webhost, I had problems with it myself before.
A good alternative would be db4free.net or to create a local db.
Keep in mind that db4free isn't a production db, it's ment to be for testing, they give no guarantees what's so ever when it comes to protection of your data, latency or uptime, but I used it often before and never had probs
And welcome to the ranch
It's good to be able to use someting, it's better to understand how it works.