got exporting csv to work, format not great, got initial queries
fixed query hopefully
added query in reports_controller and appointments model
gemflie lock was deleted...
merging conflicts with stephs stuffs