Another overhaul, using poop for first time (php object orientated programming)

first time using poop(php opbject orientated programming), making sql
commands more cleaner and setup file without code that does not belong
there.
Still a mess though :)