Generate csv file from observation database