added database scripts and login scene