Added csv to requirements list
Refactored sql statements into a resource