def row2dict(row):
	"""Takes sqlite3.Row objects and converts them to dictionaries.
	This is important for JSON serialization because otherwise
	Python has no idea how to turn a sqlite3.Row into JSON."""
	x = {}
	for col in row.keys():
		x[col] = row[col]
	return x