Eradicating the use of Generic
Fixed major memory leak bug. This may have caused other bugs so will need to look out for those
Fiddle about with this and the mysql memory bug issue
General changes surrounding memory bug fix