logout fix

fixed a bug where you couldnt log out properly (session in DB wasnt
deleted)