Made database a variable and used os.path.join(os.path.dirname(__file__), "dragonGardensConnsoleDB.json"), then used that.