FINALLY got Database working

Loads of stuff.  Working on register page just now
Can register, can login, can view all current bugs.