still big MySQL refactoring
-reimplemented user and session management