Made connection to db

Made connection to sql database for login and updating query