add database and hostname.