Connection to the database in Constructor added