update facebook login & logout & database connect