automatically upgrade database if needed and set database name to hostname