public static void connect(RPSystem plugin){
		SQLManager.plugin = plugin;
		// connect to database and prepare to take queries
		 SQL_CONNECTION = null;
	     SQL_RESULTSET = null;
	     SQL_STATEMENT = null;
	 
	     plugin.log.info(plugin.logPrefix + "Trying to connect database.");
	     try {
	    	 Class.forName("org.sqlite.JDBC");
	            
	         // jdbc:sqlite:%dir%\\mrps.db
	         plugin.log.info(plugin.logPrefix + "Connecting...");
	         SQL_CONNECTION = DriverManager.getConnection("jdbc:sqlite:" + plugin.getDataFolder() + File.separator + "mrps.db");
	     } catch (Exception e) {
	            e.printStackTrace();
	            plugin.log.severe(plugin.logPrefix + "Failed to connect.");
	        } finally {
	            try {
	            	plugin.log.info(plugin.logPrefix + "Connected.");
	            } catch (Exception e) {
	            	plugin.log.severe(plugin.logPrefix + "Unable to join connection thread.");
	                e.printStackTrace();
	            }
	        }
	}