Connection to database and check email unique