Added getDatabaseName(), along with some extra sanity checks.
Added installGetDatabaseConnection(), which uses mysqli to connect to the database instead of mysql, in order to use multi_query().