public boolean doesDatabaseExist() {
		try {
			getConnection(true);
			rs = getConn().getMetaData().getCatalogs();

			while (rs.next()) {
				String databaseName = rs.getString(1);

				if(databaseName.equals(dbName)){
					return true;
				}
			}
		} catch (SQLException e) {
			e.printStackTrace();
		} finally {
			try {
				rs.close();
			} catch (SQLException e) {
				e.printStackTrace();
			}
		}

		return false;
	}