public Connection getConnection(){
		if(sqlite){
			if(!this.getFile().exists()){
				plugin.getLogger().info("CRITICAL: Database does not exist");
				try {
					this.getFile().createNewFile();
					Class.forName("org.sqlite.JDBC");
					Connection dbCon = DriverManager.getConnection("jdbc:sqlite:" + this.getFile());
					return dbCon;
				} 
				catch (IOException e) {
					e.printStackTrace();
					plugin.getLogger().info("Could not create file " + this.getFile().toString());
				} 
				catch (ClassNotFoundException e) {
					e.printStackTrace();
					plugin.getLogger().info("You need the SQLite JBDC library.  Put it in MinecraftServer/lib folder.");
				} catch (SQLException e) {
					e.printStackTrace();
					plugin.getLogger().info("SQLite exception on initialize " + e);
				}
			}
			try{
				Class.forName("org.sqlite.JDBC");
				return DriverManager.getConnection("jdbc:sqlite:" + this.getFile());
			}
			catch(SQLException e){
				e.printStackTrace();
				plugin.getLogger().info("SQLite exception on initialize.");
			}
			catch(ClassNotFoundException e){
				e.printStackTrace();
				plugin.getLogger().info("SQLite library not found, was it removed?");
			}
		}
		else{
			try{
				return DriverManager.getConnection("jdbc:mysql://"+this.host+":"+this.port+"/"+this.dbName, user, pass);
			}
			catch(SQLException e){
				e.printStackTrace();
				return null;
			}
		}
		return null;
	}