fixing some stupid errors

fixed some stupid namespace errors...
first attempt at loading tickettypes.
THIS IS A RUSH ATTEMPT, will working code soon!
added database code

still working on some stupid stuff here.
added the database code.

i really need more time for this project...