public void closeConnection() throws MainException {
		try{
			dbConnection.close();
			DBAccess.getInstance().removeInstance();
		} catch (SQLException e){
			e.printStackTrace();
			throw new MainException("Failed to close connection to database");
		}
	}