def store_path(connection, path):
	"""Store the file path in the SQL filepaths table.
	:param connection:
	:param path:
	:return: path id"""
	insert = '''INSERT OR IGNORE INTO filepaths(filepath)
		VALUES(?)'''
	cursor = connection.cursor()
	cursor.execute(insert, (path,))
	return cursor.lastrowid