Fleshed out functions/classes with basic code
Removed the client specific stuff from the get_file SQL and moved it off
to it's own call