added connection to database login
updated conenction to database