Database skeleton added.
Autologin implemented.