What exactly did you do to delete the databse? Because you have to have a database in order to add hostname. If you deleted the database, you should not have been able to add a hostname to it. If you added a database and a hostname to the new database, it takes sometime for the changes to be completed. Does the database also have a user setup?
Perl / MySQL / HTML+CSS