Even more DB usage!
@TODO: login() method comment.