added database gem and fixed login_as (\!)