def get_database_name(self):
uri_dict = uri_parser.parse_uri(self.host)<EOL>database = uri_dict.get('<STR_LIT>', None)<EOL>if not database:<EOL><INDENT>raise "<STR_LIT>"<EOL><DEDENT>return database<EOL>
extract database from connection string