Build queries in more dynamic fashion

Send query through #send_query method append queries to increase
performance and allow batch commands more easily.
Move rec download to FBA class + output CSV

File IO method worked fine but added unnecessary formatting steps.
Outputting to CSV ensures proper format and mitigates having to perform
stupid regex substitutions.
Remove old/unused methods for querying db