Tokening working, get queries database properly.

post working properly, bugfix login etc.