Fist pass at the SQL code
Finished python pandas part
Finish avro and fixed small sql misunderstanding