python sqlite fetchall to json