Fixed several errors Namespaces

Several classes were no longer locatable by the system.
DB Works fine again

Everything has been fixed and works OK.
Replaced left with right join