public DBAccess(Connection dbConnection) throws MainException {

		this.dbConnection = dbConnection;

		try {
			if(this.dbConnection.isClosed()){
				throw new MainException("The database connection is closed.");
			}
		} catch (SQLException e) {
			e.printStackTrace();
			throw new MainException("Cannot access database connection.");
		}

		singDbAccess = this;
	}