Fixed error page
Made dbconn a global var
renamed db_getToken and db_addToken
Revamped database and oauth code