Fixed up all the return type methods into partial files.

Created a TT template to write partial files if changes to the underlying database are made
Finished off all the test files and changed to write to .csv instead of .txt
Removed all old references to databases and made sure that the application is connecting to the database layer only