Fix typo in script
Initialise the counter variable
Fix SQL syntax error
Improve the find highest file function to be much faster
New function to pull in entire result set in one go
Merge pull request #254 from timschofield/develop

Develop