Added database name field to settings/login

Changed to openConnection method to grab the database name from the login screen and use it throughout the application.