async def update_guild(guild):
	await bot.pg.execute("INSERT INTO guild(guild_id) VALUES($1) ON CONFLICT DO NOTHING", guild.id)
	for chan in guild.text_channels:
		await self.bot.pg.execute("INSERT INTO channel(channel_id, guild) ON CONFLICT DO NOTHING", chan.id, guild.id)